<{button href="index.php?ctl=order/order&act=showAdd" wrapimg="true" label="添加新订单" type="link" target="_blank" class="btn-blank" icon="finder_add.gif"}>
<{if $erpfinder.count>=6}>
	<{if $erpfinder.erpstatus==1}><!-- 已开通 -->
		<{if $erpfinder.erpbind==1}><!-- 已绑定 -->
			<{button href="https://account.shopex.cn/product" wrapimg="true" id="erp-enter" label="进入ERP处理订单" type="link" target="_blank" icon="enter-erp.png"}>
		<{else}><!-- 未绑定 -->
			<{button href="index.php?ctl=service/certificate&act=node_binding" wrapimg="true" id="erp-bind" label="绑定ERP" type="link" target="_self" icon="bind-erp.png"}>
		<{/if}>
	<{else}><!-- 未开通 -->
		<{button href="http://yunqi.shopex.cn/products/erp" wrapimg="true" id="erp-know" label="了解ERP" type="link" target="_blank" icon="know-erp.png"}>
	<{/if}>
<{/if}>
<{button href="index.php?ctl=order/order&act=showOrderFlow" wrapimg="true" label="启用单据" icon="finder_sheet.gif"}>
<{button href="index.php?ctl=order/order&act=showPrintStyle" wrapimg="true" label="打印样式" icon="finder_print_style.gif"}>
<{button submit="index.php?ctl=order/order&act=toPrint" wrapimg="true" label="打印选定订单" target="_blank" icon="finder_print.gif"}>
<script>
function orderPrint(el,type){
    $(el).className='p_prted';
    var id = $(el).getParent('.row').getAttribute('item-id');
    return open('index.php?ctl=order/order&act=printing&p[0]='+type+'&p[1]='+id);
    new Dialog('index.php?ctl=order/order&act=printing&p[0]='+type+'&p[1]='+id,{frameable:true,
      width:window.getSize().x*0.9,
      height:window.getSize().y*0.9
    });
}
</script>